package cn.Mmovie.service.impl;

import cn.Mmovie.bean.Administrator;
import cn.Mmovie.dao.AdministratorDao;
import cn.Mmovie.dao.Impl.AdministratorDaoImpl;
import cn.Mmovie.service.AdministratorService;

public class AdministratorServiceImpl implements AdministratorService {
    private AdministratorDao administratorDao= new AdministratorDaoImpl();
    @Override
    public Administrator loginAdmin(String username, String password) {
        return administratorDao.selectUserByUsernameAndPassword(username,password);
    }
}
